package com.my.aslife.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my.aslife.module.common.PageRequestVo;
import com.my.aslife.module.entity.Sensitive;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author mayuan
 * @description TODO
 */
public interface SensitiveMapper extends BaseMapper<Sensitive> {

    @Select("select * from c_sensitive limit #{page.current}, #{page.pageSize}")
    List<Sensitive> list(@Param("page") PageRequestVo pageRequestVo);

    @Select("select * from c_sensitive")
    List<Sensitive> listALL();
}
